package cloud.alibaba.study.service;

import java.math.BigDecimal;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import cloud.alibaba.study.entity.base.ResponseVo;

@FeignClient(value = "m-account-service")
public interface IAccountService {
	 /**
     * 扣减账户余额
     */
    @PostMapping("/account/decrease")
    ResponseVo decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}
